package com.sicnu.carrent.serivce.impl;

import com.sicnu.carrent.domain.Brand;
import com.sicnu.carrent.repository.BrandRepository;
import com.sicnu.carrent.serivce.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BrandServiceImpl implements BrandService {

    @Autowired
    private BrandRepository brandRepository;

    @Override
    public List<Brand> findAllBrand() {
        return brandRepository.findAll();
    }
}
